package example56789;
//使用final关键字修饰Animal类
final class Animal7{
}
//dog类继承Animal类
class Dog1 extends Animal7{
}
//定义测试类
public class c7 {
    public static void main(String[] args) {
        Dog1 dog = new Dog1();//创建dog类的实例对象
    }
}
